﻿using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeederSerialPort
{
    class ComHelper
    {
        public static StopBits GetStopBits(string StopBit)
        {
            return (StopBits)Enum.Parse(typeof(StopBits), StopBit) ;
        }
        public static Parity GetParity(string CheckMode)
        {
            return (Parity)Enum.Parse(typeof(Parity), CheckMode); 
        }
    }
}
